﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PickExperts2.Class;

namespace PickExperts2.form
{
    public partial class fmStartPage : Form
    {
        private TabControl _tc;
        public fmStartPage(TabControl tc)
        {
            InitializeComponent();
            _tc = tc;
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            fmHistory fh = new fmHistory();
            Class.main cMain = new main();
            cMain.showFormInTab(_tc, fh, "历史记录");
        }

        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            fmPickHistory fh = new fmPickHistory();
            Class.main cMain = new main();
            cMain.showFormInTab(_tc, fh, "选号记录");
        }

        private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            fmPicker fp = new fmPicker();
            Class.main cMain = new main();
            cMain.showFormInTab(_tc, fp, "号码生成");
        }

        private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            fmBrowse fh = new fmBrowse(Class.main.wubai代购, tabControl1);
            Class.main cMain = new main();
            cMain.showFormInTab(_tc, fh, "代购");
        }

        private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            fmBrowse fh = new fmBrowse(Class.main.wubai代购, tabControl1);
            Class.main cMain = new main();
            cMain.showFormInTab(_tc, fh, "代购");
        }
    }
}
